-- GENERATED SPELL FOR [Zabra'jin Guard] --


function spell0_18909(pUnit, Event) --@Revenge,n/a--
pUnit:FullCastSpellOnTarget(12170,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_18909', 610, 1)
end

function spell1_18909(pUnit, Event) --@Shield Block,Self--
pUnit:FullCastSpellOnTarget(12169,pUnit)
pUnit:RegisterEvent('Sorts_18909', 5250, 1)
end

function Sorts_18909(pUnit, Event)
local choix_sorts_18909 = math.random(0, 1)
if choix_sorts_18909 == 0 then
pUnit:RegisterEvent('spell0_18909', 1, 1)
end
if choix_sorts_18909 == 1 then
pUnit:RegisterEvent('spell1_18909', 1, 1)
end
end

function mob18909_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18909', math.random(1500, 3000), 1)
end

function mob18909_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18909_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18909_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18909, 1, 'mob18909_Action')
RegisterUnitEvent(18909, 2, 'mob18909_Leave')
RegisterUnitEvent(18909, 3, 'mob18909_Kill')
RegisterUnitEvent(18909, 4, 'mob18909_Die')
